Optimal. Leaf size=56 \[ \frac{\sqrt{a+b x^2} (2 A+B x)}{2 b}-\frac{a B \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0230157, antiderivative size = 56, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {780, 217, 206} \[ \frac{\sqrt{a+b x^2} (2 A+B x)}{2 b}-\frac{a B \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 780
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{x (A+B x)}{\sqrt{a+b x^2}} \, dx &=\frac{(2 A+B x) \sqrt{a+b x^2}}{2 b}-\frac{(a B) \int \frac{1}{\sqrt{a+b x^2}} \, dx}{2 b}\\ &=\frac{(2 A+B x) \sqrt{a+b x^2}}{2 b}-\frac{(a B) \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{x}{\sqrt{a+b x^2}}\right )}{2 b}\\ &=\frac{(2 A+B x) \sqrt{a+b x^2}}{2 b}-\frac{a B \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.0321117, size = 57, normalized size = 1.02 \[ \frac{\sqrt{b} \sqrt{a+b x^2} (2 A+B x)-a B \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 55, normalized size = 1. \begin{align*}{\frac{Bx}{2\,b}\sqrt{b{x}^{2}+a}}-{\frac{Ba}{2}\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ){b}^{-{\frac{3}{2}}}}+{\frac{A}{b}\sqrt{b{x}^{2}+a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.79326, size = 275, normalized size = 4.91 \begin{align*} \left [\frac{B a \sqrt{b} \log \left (-2 \, b x^{2} + 2 \, \sqrt{b x^{2} + a} \sqrt{b} x - a\right ) + 2 \,{\left (B b x + 2 \, A b\right )} \sqrt{b x^{2} + a}}{4 \, b^{2}}, \frac{B a \sqrt{-b} \arctan \left (\frac{\sqrt{-b} x}{\sqrt{b x^{2} + a}}\right ) +{\left (B b x + 2 \, A b\right )} \sqrt{b x^{2} + a}}{2 \, b^{2}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 3.2929, size = 70, normalized size = 1.25 \begin{align*} A \left (\begin{cases} \frac{x^{2}}{2 \sqrt{a}} & \text{for}\: b = 0 \\\frac{\sqrt{a + b x^{2}}}{b} & \text{otherwise} \end{cases}\right ) + \frac{B \sqrt{a} x \sqrt{1 + \frac{b x^{2}}{a}}}{2 b} - \frac{B a \operatorname{asinh}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )}}{2 b^{\frac{3}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18342, size = 68, normalized size = 1.21 \begin{align*} \frac{1}{2} \, \sqrt{b x^{2} + a}{\left (\frac{B x}{b} + \frac{2 \, A}{b}\right )} + \frac{B a \log \left ({\left | -\sqrt{b} x + \sqrt{b x^{2} + a} \right |}\right )}{2 \, b^{\frac{3}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]